package eu.gline.km.jni.factory;

import eu.gline.km.jni.enums.bVk;

public class BvkFactory {
	
	public static String PLAY = "PLAY";
	public static String PAUSE = "PAUSE";
	public static String VOLUMEP = "VOLUMEP";
	public static String VOLUMED = "VOLUMED";
	public static String VOLUMEM = "VOLUMEM";
	
	public static bVk generate(int i) {
		switch (i) {
		case 0:
			return bVk.VK_0;
		case 1:
			return bVk.VK_1;
		case 2:
			return bVk.VK_2;
		case 3:
			return bVk.VK_3;
		case 4:
			return bVk.VK_4;
		case 5:
			return bVk.VK_5;
		case 6:
			return bVk.VK_6;
		case 7:
			return bVk.VK_7;
		case 8:
			return bVk.VK_8;
		case 9:
			return bVk.VK_9;
		}
		return null;
	}
	
	public static bVk generate(String s) {
		
		// ABC
		if (s.equals("a")) {
			return bVk.VK_A;
		}
		
		// SPECIAL
		
		
		// MULTIMEDIA
		if (s.equals(PLAY)) {
			return bVk.VK_PLAY;
		}
		if (s.equals(PAUSE)) {
			return bVk.VK_PAUSE;
		}
		if (s.equals(VOLUMEP)) {
			return bVk.VK_VOLUME_UP;
		}
		if (s.equals(VOLUMED)) {
			return bVk.VK_VOLUME_DOWN;
		}
		if (s.equals(VOLUMEM)) {
			return bVk.VK_VOLUME_MUTE;
		}
		
		return null;
		
	}

}
